package com.stefanie.study.test;

import com.stefanie.study.dp.ConcreteComponentA;
import com.stefanie.study.dp.ConcreteDecorator;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author: stefanie-zy
 * @time: 2024/6/26-15:20
 * @description:
 */
@RestController
@Slf4j
@RequestMapping("/user")
public class UserApi {

    @GetMapping(value = "/test")
    public void test() {
        ConcreteDecorator concreteDecorator = new ConcreteDecorator(new ConcreteComponentA());
        concreteDecorator.display();
    }

}
